<?php

if(!$cms)
  include("../_cms/classes/cms.inc");

if($cms->user['authorized']) {

  $sql = "SELECT count(*) tot FROM inschrijving_bier where punten=0 or punten is null";

  $result = $cms->db->execute($sql);          // Geeft een db_result object terug
  if ($result->num_rows) {
    $myrow = $result->get_nextrow();
    $todo = $myrow['tot'];
  }

?>
<link rel="shortcut icon" href="<?=$cms->contenturl;?>assets/gfx/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="<?=$cms->contenturl;?>assets/css/onk.css" type="text/css" />
<div class="centerLayout jury">
<h1 class="home_link">
<img src="<?=$cms->contenturl;?>assets/gfx/logo.gif" style="vertical-align:middle" alt="ONK Labo logo">
ONK jury
</h1>
<img src="<?=$cms->contenturl;?>assets/gfx/ONK-LABO-logo.png" class="logo_link" alt="ONK Labo logo">
<center>Ingelogd als: <?=$cms->user['human_name']?> <br/>
<p>
<?php
  if ($todo != 0) {
	echo '<a href="score.php?ronde=1"><span class="cssSubmitButton">Score 1<sup>e</sup> ronde</span></a>';
  }
  else {
	echo '<span class="cssDisabledButton">1<sup>e</sup> ronde klaar</span>';
  }
  if ($todo != 0) {
	echo '<a href="score.php?ronde=2"><span class="cssSubmitButton">Score 2<sup>e</sup> ronde</span></a>';
  }
  else {
	echo '<span class="cssDisabledButton">2<sup>e</sup> ronde klaar</span>';
  }
  if ($todo != 0) {
	echo '<a href="score.php?ronde=3"><span class="cssSubmitButton">Score 3<sup>e</sup> ronde</span></a>';
  }
  else {
	echo '<span class="cssDisabledButton">3<sup>e</sup> ronde klaar</span>';
  }
?>

<a href="uitslagen.php"><span class="cssSubmitButton">Uitslagen lijst</span></a>
</center
<div id="footer">
<hr>
<div class="colofon">Met dank aan Frank van Tol en Ernst de Moor. Gebaseerd op eerder werk van Oscar Moerman en Hans Lepoeter.</div>
</div>
</div>
<noscript>Javascript is nodig om dit formulier in te kunnen vullen maar is op dit moment niet beschikbaar.</noscript>
<div id="info_popup">
  <div id="info_close">[ X ] &nbsp; </div>
  <div id="info_popup_info">...Momentje...</div>
</div>
</body>
</html>

<?
}
else
  echo "U dient ingelogd te zijn";
?>
 
